package com.example.second.command.classes;

import com.example.second.command.interfaces.Command;

/**
 * @ClassName: Invoker$
 * @Description: java类作用描述
 * @Author: xinya
 * @CreateDate: 2020/12/22$ 14:01$
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class Invoker {
    private Command mCommand;

    public void setCommand(Command command) {
        mCommand = command;
    }

    public void call() {
        if (mCommand != null) {
            mCommand.execute();
        }
    }
}
